object AssignmentBitOpDemo {
  def main(args: Array[String]): Unit = {
    var classTotal: Int = 0
    classTotal +=480
    classTotal +=490
    classTotal +=470
    println(s"班级总分为:$classTotal")
    var excellent: Int = 10
    var good: Int = 1
    var combinedMark: Int = excellent | good
    println(s"组合标记 (二进制) : ${Integer.toBinaryString(combinedMark)}")
    var hasExcellent: Boolean = (combinedMark & excellent) !=0
    println(s"是否包含优秀标记 : $hasExcellent")
  }
}
